/*
 * Copyright (c) 2012 Sqpoll.
 * All rights reserved.
 */
package com.sqpoll.survey.model;

import java.io.Serializable;
import java.util.Date;

/**
 * This class is a model for repondent's response to answer for a question.
 * 
 * @author Younggue Bae
 */
@SuppressWarnings("serial")
public class AnswerResponse implements Serializable {

	private int responseId;
	private String participantId;
	private int surveyId;
	private int questionId;
	private int questionItemId;
	private int answerChoiceId;
	private String answer;
	private boolean isOther;
	private Date responseDate;
	
	public int getResponseId() {
		return responseId;
	}
	public void setResponseId(int responseId) {
		this.responseId = responseId;
	}
	public String getParticipantId() {
		return participantId;
	}
	public void setParticipantId(String participantId) {
		this.participantId = participantId;
	}
	public int getSurveyId() {
		return surveyId;
	}
	public void setSurveyId(int surveyId) {
		this.surveyId = surveyId;
	}
	public int getQuestionId() {
		return questionId;
	}
	public void setQuestionId(int questionId) {
		this.questionId = questionId;
	}
	public int getQuestionItemId() {
		return questionItemId;
	}
	public void setQuestionItemId(int questionItemId) {
		this.questionItemId = questionItemId;
	}
	public int getAnswerChoiceId() {
		return answerChoiceId;
	}
	public void setAnswerChoiceId(int answerChoiceId) {
		this.answerChoiceId = answerChoiceId;
	}
	public String getAnswer() {
		return answer;
	}
	public void setAnswer(String answer) {
		this.answer = answer;
	}
	public boolean isOther() {
		return isOther;
	}
	public void setOther(boolean isOther) {
		this.isOther = isOther;
	}
	public Date getResponseDate() {
		return responseDate;
	}
	public void setResponseDate(Date responseDate) {
		this.responseDate = responseDate;
	}
	
	@Override
	public String toString() {
		return "AnswerResponse [responseId=" + responseId + ", participantId=" + participantId + ", surveyId=" + surveyId
				+ ", questionId=" + questionId + ", questionItemId=" + questionItemId + ", answerChoiceId=" + answerChoiceId
				+ ", answer=" + answer + ", isOther=" + isOther + ", responseDate=" + responseDate + "]";
	}

}
